<?php
require('config.php');

		$sql="select areaId,parentId,areaName from `".$oto."_areas` where `areaFlag`='1'";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$person_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(isset($person_info)) echo json_encode($person_info);
		else echo '[]';
?>